//
//  BKCicleView.m
//  bestkeep
//
//  Created by yons on 16/12/5.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKCicleView.h"
#import "BKMainCommon.h"

@implementation BKCicleView

-(id) init{
    self = [super init];
    [self initView];
   
    return self;
}

- (void)initView{
    
    CGFloat Width = (ScreenWidth-(75+20))/7.0;
    
    CGFloat Radius_big=Width;
    CGFloat Radius_small=Width-10;
    
    _imgV_bigCicle = [[UIImageView alloc]init];
    [self addSubview:_imgV_bigCicle];
    _imgV_bigCicle.frame=CGRectMake(0, 0, Radius_big, Radius_big);
    
    _imgV_smallCicle= [[UIImageView alloc]init];
    [_imgV_bigCicle addSubview:_imgV_smallCicle];
    _imgV_smallCicle.frame=CGRectMake(5, 5, Radius_small, Radius_small);
    
    /*
     * 专门用来放今天  48*24  ->24*12
     */
    _imgV_down= [[UIImageView alloc]init];
    CGFloat Width_left=(Width-24)/2.0;
    _imgV_down.frame=CGRectMake(Width_left, Width+9, 24, 12);
    _imgV_down.image=[UIImage imageNamed:@"BKIntegral_today"];
    [self addSubview:_imgV_down];
    _imgV_down.hidden=YES;
    
    
    _lab_Cicle=[[UILabel alloc]init];
    _lab_Cicle.backgroundColor=[UIColor  clearColor];
    _lab_Cicle.font=[UIFont systemFontOfSize:12];
    [self addSubview:_lab_Cicle];
    _lab_Cicle.textColor=[UIColor whiteColor];
    _lab_Cicle.textAlignment=NSTextAlignmentCenter;
    _lab_Cicle.frame=CGRectMake(0, 0, Radius_big, Radius_big);
    
    
    _lab_down=[[UILabel alloc]init];
    _lab_down.backgroundColor=[UIColor clearColor];
    [self addSubview:_lab_down];
    _lab_down.font=[UIFont systemFontOfSize:12];
    _lab_down.textColor=RGB(191, 189, 189);
    _lab_down.textAlignment=NSTextAlignmentCenter;
    _lab_down.frame=CGRectMake(-20, Width, Width+40, 12+18);
    
    
}
@end
